Parameters
Returns
A query result containing an object with acount property representing the number of filtered primary sale items in a collection.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The useGetCountOfPrimarySaleItems hook returns the number of filtered primary sale items in a collection
| Name | Type | Description |
|---|---|---|
params.chainId | number | The chain ID (e.g., 1 for Ethereum, 137 for Polygon) |
params.collectionAddress | string | The collection contract address |
params.config | SdkConfig | Optional SDK configuration parameters |
params.side | OrderSide | The order side to count (listing or offer) |
params.filter | OrdersFilter | Optional filter for the orders |
params.query | StandardQueryOptions | Optional React Query configuration (from TanStack Query) |
count property representing the number of filtered primary sale items in a collection.
import { useGetCountOfPrimarySaleItems } from "@0xsequence/marketplace-sdk/react";
const { data: countOfPrimarySalesItems } = useGetCountOfPrimarySaleItems({
chainId: 1,
primarySaleContractAddress: "0x00"
});
console.log(countOfPrimarySalesItems?.count);
Was this page helpful?